2026-09-20 · a-plus, comptia, class-notes
Before automatic addressing, every device's IP configuration — IP address, subnet mask, default gateway, DNS servers and other settings — had to be entered manually. That was manageable with a small number of devices…
Class notes · Professor Messer, CompTIA A+ 220-1201 Core 1 · Objective 2.4
Quick reference: the short version of this lesson is the DHCP cheat sheet, part of Section 2.
By the end of these notes you should be able to:
Before automatic addressing, every device's IP configuration — IP address, subnet mask, default gateway, DNS servers and other settings — had to be entered manually. That was manageable with a small number of devices using unchanging static addresses, but becomes impractical with thousands of devices on a modern network.
DHCP (Dynamic Host Configuration Protocol) was created in 1997 to let a system administrator automatically assign this configuration across an entire infrastructure. It's the reason you can open a laptop in a coffee shop and start browsing immediately, with no manual setup at all.
The automated exchange that gets a device its IP address is commonly called DORA: __D
__iscover, __O
__ffer, __R
__equest, __A
__cknowledge. It runs every time a device connects to a network and needs an address from a DHCP server.
Two devices join the network: Sam's laptop and Jack's laptop, both with no IP address yet. The default behaviour of almost every OS is to request an address via DHCP automatically. This walkthrough follows Sam's laptop; Jack's goes through the identical four steps separately.
Network in this example:
Sam's laptop doesn't know where any DHCP server is, so it broadcasts a DHCP Discover message to find out.
Field
Value
Source IP
0.0.0.0 (Sam has no address yet)
Source port
UDP 68
Destination
Broadcast — reaches every device on the local subnet
The switch forwards this broadcast to every device on the local subnet, including the DHCP server.
The DHCP server (10.10.10.99) responds with a DHCP Offer, proposing an IP address Sam's laptop could use.
Field
Value
Source
The DHCP server, 10.10.10.99
Destination
Broadcast, 255.255.255.255 — Sam has no address to send directly to yet
If more than one DHCP server exists on the network, Sam's laptop could receive multiple offers to choose between.
Sam's laptop picks one offer, and broadcasts a Request for that specific address back to the network.
Field
Value
Source IP
0.0.0.0 (still no address)
Source port
UDP 68
Destination
255.255.255.255, UDP 67
Because it's a broadcast, every device on the subnet receives it, including the DHCP server — and, if there were more than one, every other DHCP server too (so they know their offer wasn't chosen).
The DHCP server sends an Acknowledgment, confirming the address is now locked in for Sam's device for the duration of the lease — it won't be handed to anyone else during that time.
Field
Value
Source
The DHCP server, 10.10.10.99
Destination
Broadcast, 255.255.255.255, UDP 68
Once Sam's laptop receives this acknowledgment, it finally updates its own configuration — Sam's laptop is now 10.10.10.42.
Sam's laptop (no IP yet) DHCP server (10.10.10.99) | | |--- 1. DISCOVER (broadcast, src 0.0.0.0) ----->| | | |<-- 2. OFFER (broadcast to 255.255.255.255) ---| | | |--- 3. REQUEST (broadcast, "I'll take it") --->| | | |<-- 4. ACK (broadcast: it's yours) ------------| | | Sam's laptop now configured as 10.10.10.42
Exam tip: notice that every message in DORA is a broadcast. Even the server's replies go to 255.255.255.255, because the requesting device doesn't have a usable IP address to be addressed directly until the very last step completes.
How did the server know which address to offer Sam? It had a predefined list of IP addresses and settings already configured — this is the DHCP scope.
A scope typically defines:
Element
Purpose
Available addresses
The full range that could be assigned
Exclusions
Addresses within that range that must never be handed out — e.g. because a switch or router already uses them statically
Subnet mask
Sent to clients along with their address
Lease duration
How long an assigned address is valid before renewal is needed
Other options
DNS server, default gateway, VoIP server addresses, and more
Why exclusions matter: if a static device (like a router) already uses an address inside the scope's range, and DHCP handed that same address to someone else, you'd get an IP address conflict. Excluding it prevents that.
Within a scope are pools — the actual groups of addresses the server draws from when assigning a dynamic address. These are usually large, contiguous ranges, for example:
192.168.1.0/24 192.168.2.0/24 192.168.3.0/24A device connecting from any of those subnets gets an address pulled from the matching pool.
Pools don't have to be one single unbroken block. You can define different sections within a pool, with exclusions placed in the middle of the range — for instance, reserving a block for statically configured devices while leaving the rest available for dynamic assignment.
On a Windows Server running the DHCP role, viewed in Server Manager:
DHCP is often thought of as handing out any available address at random. But some devices — a file server, a web server, or a router — need to keep the same address every time they start up.
You could visit each of those devices and configure a static IP address by hand. But if your addressing scheme ever changes, you'd have to revisit every single device to update it manually.
A DHCP reservation solves this from one place: you configure the fixed assignment on the DHCP server itself, and never have to touch the device directly.
The DHCP server is told: "this MAC address always receives this IP address." The device's MAC address is the unique identifier used to recognise it and hand out the same address every time.
Other names for this: static DHCP assignment, static DHCP, or simply an IP reservation.
A router's DHCP configuration shows:
Setting
Value
Address pool
192.168.1.2 – 192.168.1.254
Reservation 1
Device "Prometheus" → always 192.168.1.6
Reservation 2
Device "Odyssey" → always 192.168.1.9
Term
Definition
DHCP
Dynamic Host Configuration Protocol — automatic IP configuration
DORA
Discover, Offer, Request, Acknowledge — the DHCP process
Broadcast
A message sent to every device on the local subnet
Lease
The period an assigned IP address remains valid
DHCP scope
A DHCP server's configuration for a subnet: addresses, exclusions and options
Pool
The group of addresses available for dynamic assignment within a scope
Exclusion
An address within a scope's range that is never dynamically assigned
DHCP reservation
A fixed IP address permanently tied to a specific device's MAC address
Static DHCP assignment / IP reservation
Other names for a DHCP reservation
MAC address
The unique hardware address used to identify a device for a reservation
DHCP snooping
A switch feature that only trusts DHCP replies from approved ports
Rogue DHCP server
An unauthorised server handing out (potentially malicious) DHCP configuration